package com.example.springbootmybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * @author 28593
 * @auther 尚智江
 * @Date 2022/10/16 22:15
 */
@TableName("t_product")
@Data
public class Product {
    private Long id;
    private String name;
    private Integer price;
    // 标识乐观锁版本号字段
    @Version
    private Integer version;
}
